
<div class="left">

    <div class="banner">
        <div class="title">Edit event</div>
    </div><!--banner-->       
    <div class="list-pro">
	<?php
	if (!isset($notOwn)) {

	    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
		'id' => 'event-form-update',
		'enableAjaxValidation' => false,
		'enableClientValidation' => true,
		'clientOptions' => array(
		    'validateOnSubmit' => true
		)
	    ));
	    ?>



	    <?php echo $form->labelEx($eventModel, 'title'); ?>				
	    <?php echo $form->textField($eventModel, "title"); ?>			
	    <?php echo $form->error($eventModel, "title"); ?>

	    <?php
	    echo $form->datepickerRow($eventModel, 'start', array(
		'prepend' => '<i class="icon-calendar"></i>',
		'disabled' => 'disabled'
	    ))
	    ?>

	    <?php echo $form->labelEx($eventModel, 'description'); ?>		
	    <?php
	    echo $form->textArea($eventModel, 'description', array(
		'rows' => 10, 'cols' => 20,
		'class' => 'span6 description-event'));
	    ?>
	    <?php echo $form->error($eventModel, "description"); ?>
    	<br>
	    <?php echo CHtml::submitButton('Save changes', array('name' => 'update-event', 'class' => 'btn btn-info')); ?>



	    <?php $this->endWidget(); ?>
	    <?php
	} else {
	    ?>
    	<div class="alert alert-error"><strong>Error!</strong> You don't have permission to edit this post.</div>
	    <?php
	}
	?>
    </div><!--list-pro-->

</div><!--left-->
<div class="right">        
    <?php $this->widget('application.widgets.Calendar'); ?>    
    <?php $this->widget('application.widgets.EventCalendar') ?>
</div><!--right-->